package com.beney.app.context;

import com.beney.service.UserService;

/**
 * 状态抽象
 *
 * @author Beney
 */
public abstract class AbstractState {
    protected AppContext context;
    protected UserService userService;

    protected AbstractState(AppContext context) {
        this.context = context;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    /**
     * 在当前状态下运行
     */
    abstract void runState();
}
